package cc.vant.wechat.model.packet;

import io.netty.buffer.ByteBuf;

public interface Packet {
    int LOGIN = 0;
    int SIGNUP = 1;
    int SUCCESS = 2;
    int FAIL = 3;
    int SIMPLETEXT = 4;


    ByteBuf serialize();

    void unserialize(ByteBuf byteBuf);

    int getType();
}